<?php

// Super simple dao for demo purposes.
$context->set('sampleDao', array(
    'className' => 'examples_single_dao_SampleDao'
));

// Application Configuration.
$context->set('configuration', array(
    'className' => 'dd_configuration_PropertiesConfiguration',
    'constructorArgs' => array(
        'locations' => array(
            'app.properties',
            'appSite.properties',
            'uri.properties',
            'uriSite.properties',
        ),
    ),
));

// Placeholder Configurer is used to replace ${property.key.names} with
// the values found inside of a configuration object.
$context->set('placeholderConfigurer', array(
    'className' => 'substrate_DdConfigurationPlaceholderConfigurer',
    'constructorArgs' => array(
        'configuration' => $context->ref('configuration'),
    ),
));

$context->set('uriConfiguration', array(
    'className' => 'hc_uri_UriConfiguration',
    'constructorArgs' => array(
        'configuration' => $context->ref('configuration')
    ),
    'lazyLoad' => false,
));

//
// Use this to activate log4php support.
//
// You will need to make certain that log4php's LogManager class
// is accessible by the ClassLoader.
//
// $context->set(array(
//     'className' => 'hc_logging_LogManager',
//     'constructorArgs' => array(
//         'className' => 'hc_logging_Log4PhpLoggerAdapter',
//     ),
//     'lazyLoad' => false,
// ));
//

?>
